package cn.ex.ymcc.globalexception;

import lombok.Data;

/**
 * @Author: ZeWangmu
 * @Date: 2022/07/15/15:55
 * @Description:  全局异常处理
 */
@Data
public class GlobalException extends RuntimeException {
    private String code;

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message, String code){
        super(message);
        this.code = code;
    }
}
